using System;

namespace ClassEntities
{
    [Serializable]
    public class tblDeThi
    {
        private int stt;
        private string tenMH;
        private int idGiangVien;
        private string tenDeThi;
        private string thoigianlambai;
        private int soluongcauhoi;
        private string diemdat;
        private string diemtoida;
        private string ghichu;
        private string ghichusaukhithi;
        private DateTime ngaytao;
        public tblDeThi()
        { }
        public tblDeThi(int stt, string tenMH, int idGiangVien, string tenDeThi, string thoigianlambai, int soluongcauhoi, string diemdat, string diemtoida, string ghichu, string ghichusaukhithi, DateTime ngaytao)
        {
            this.stt = stt;
            this.tenMH = tenMH;
            this.idGiangVien = idGiangVien;
            this.tenDeThi = tenDeThi;
            this.thoigianlambai = thoigianlambai;
            this.soluongcauhoi = soluongcauhoi;
            this.diemdat = diemdat;
            this.diemtoida = diemtoida;
            this.ghichu = ghichu;
            this.ghichusaukhithi = ghichusaukhithi;
            this.ngaytao = ngaytao;
        }
        public int Stt
        {
            get { return this.stt; }
            set
            {
                if (value == null)
                    throw new Exception("stt not allow nullvalue.");
                this.stt = value;
            }
        }
        public string TenMH
        {
            get { return this.tenMH; }
            set { this.tenMH = value; }
        }
        public int IdGiangVien
        {
            get { return this.idGiangVien; }
            set { this.idGiangVien = value; }
        }
        public string TenDeThi
        {
            get { return this.tenDeThi; }
            set { this.tenDeThi = value; }
        }
        public string Thoigianlambai
        {
            get { return this.thoigianlambai; }
            set { this.thoigianlambai = value; }
        }
        public int Soluongcauhoi
        {
            get { return this.soluongcauhoi; }
            set { this.soluongcauhoi = value; }
        }
        public string Diemdat
        {
            get { return this.diemdat; }
            set { this.diemdat = value; }
        }
        public string Diemtoida
        {
            get { return this.diemtoida; }
            set { this.diemtoida = value; }
        }
        public string Ghichu
        {
            get { return this.ghichu; }
            set { this.ghichu = value; }
        }
        public string Ghichusaukhithi
        {
            get { return this.ghichusaukhithi; }
            set { this.ghichusaukhithi = value; }
        }
        public DateTime Ngaytao
        {
            get { return this.ngaytao; }
            set { this.ngaytao = value; }
        }
        public override string ToString()
        {
            return this.stt + "; " + this.tenMH + "; " + this.idGiangVien + "; " + this.tenDeThi + "; " + this.thoigianlambai + "; " + this.soluongcauhoi + "; " + this.diemdat + "; " + this.diemtoida + "; " + this.ghichu + "; " + this.ghichusaukhithi + "; " + this.ngaytao + "; ";
        }
        public override bool Equals(Object obj)
        {
            tblDeThi me = (tblDeThi)obj;
            bool ret = this.Stt.Equals(me.Stt);
            return ret;
        }
        public override int GetHashCode()
        {
            return this.Stt.GetHashCode();
        }

    }
}